package org.exercise7.responsibilityChain;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/11/28 19:52
 */
public abstract class AbstractDepartment {

    private AbstractDepartment nextDepartment;

    public abstract String getCondition();


    public void setNextDepartment(AbstractDepartment nextDepartment) {
        this.nextDepartment = nextDepartment;
    }

    public AbstractDepartment getNextDepartment() {
        return nextDepartment;
    }
}
